class Person{
    public int name;
    public void eat(){
        System.out.println("sb");
    }
}
class Dog extends Person{
    @Override
    public void eat() {
        System.out.println("wu ");
    }
}
public class Test {
    public static void fun(Person person){
        person.eat();
    }
    public static void main(String[] args) {
        fun(new Dog());
    }
}
